Component({
  properties: {
    show: {
      type: Boolean,
      value: false
    },
    item: {
      type: Object,
      value: {}
    },
    messageType: {
      type: String,
      value: 'designer'
    }
  },
  methods: {
    close () {
      this.triggerEvent('close')
    },
    seeDetail () {
      if (this.data.messageType === 'designer') {
        wx.$nav.navigateTo(`/pages/account/project/detail/index?id=${this.data.item.objectId}`)
        this.close()
      } else {
        wx.$nav.navigateTo(`/supplier/pages/order/detail/index?id=${this.data.item.objectId}`)
        this.close()
      }
    }
  },
})